import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import pxtorem from "postcss-pxtorem";
import path from 'path';
export default defineConfig({
  plugins: [vue()],
  resolve: {
    alias: {
      "@": path.resolve(__dirname, "./src"),
    },
  },
  css: {
    postcss: {
      plugins: [
        // pxtorem({
        //   rootValue: 16, //那么1rem等于16px
        //   propList: ["*"],
        // }),
      ],
    },
  },
});
